import { request } from '@/utils/axiosInstance.js'

export const wordsCreate = (data) => {
    return request({
        url: '/set/create',
        method: 'POST',
        data
    })
}
export const getWords = (data) => {
    return request({
        url: '/set/get',
        method: 'POST',
        data
    })
}
export const updateWord = (data) => {
    return request({
        url: '/set/update',
        method: 'POST',
        data
    })
}


export const getUserWordSet = (data) => {
    return request({
        url: '/set/getWords',
        method: 'POST',
        data
    })
}

export const deleteWorkds = (data) => {
    return request({
        url: '/set/delete',
        method: 'POST',
        data
    })
}

export const updateWorkds = (data) => {
    return request({
        url: '/set/update',
        method: 'POST',
        data
    })
}

export const create = (data) => {
    return request({
        url: '/user/create',
        method: 'POST',
        data
    })
}

export const getById = (data) => {
    return request({
        url: '/user/getById',
        method: 'POST',
        data
    })
}

export const update = (data) => {
    return request({
        url: '/user/update',
        method: 'POST',
        data
    })
}

export const del = (data) => {
    return request({
        url: '/user/delete',
        method: 'POST',
        data
    })
}